// import { ShaohuoPersonService } from 'services/Api'
// import store from 'store'

export const tableConfig = {
  colunms: [
    {
      label: '真实姓名',
      prop: 'real_name',
      sortable: true
    }, {
      label: '身份证号',
      prop: 'id_card',
      sortable: true
    }, {
      label: '捎货类型',
      prop: 'funcsName',
      sortable: true
    }, {
      label: '手机号',
      prop: 'mobile',
      sortable: true
    }, {
      label: '紧急联系人',
      prop: 'emergency_contact',
      sortable: true
    }, {
      label: '紧急联系人电话',
      prop: 'emergency_contact_phone',
      sortable: true
    }, {
      label: '证件照片',
      prop: 'status',
      sortable: true
    }, {
      label: '审核状态',
      prop: 'apply_status',
      sortable: true
    }, {
      label: '考试状态',
      prop: 'exam_status',
      sortable: true
    }, {
      label: '异常原因',
      prop: 'remark',
      sortable: true
    }, {
      label: '申请时间',
      prop: 'create_time',
      sortable: true
    }, {
      label: '状态',
      prop: 'status',
      sortable: true
    }
  ]
}

export const searchConfig = [
  {
    name: '模糊查询',
    key: 'search',
    type: 'input',
    placeholder: '请填写查询关键词',
    value: '',
    isCanCommonSearch: true
  // }, {
  //   name: '用户类型',
  //   key: 'ust_id',
  //   type: 'select',
  //   placeholder: '请选择用户类型',
  //   asyncItems: {
  //     getAsyncItems: () => {
  //       return ShaohuoPersonService.shaohuoUserType({ acc_id: store.state.acc_id })
  //     },
  //     asyncItemsHandler: res => {
  //       return res.list.map(i => {
  //         return { label: i.name, value: i.ust_id }
  //       })
  //     }
  //   },
  //   value: '',
  //   isCanCommonSearch: true
  }, {
    name: '审核状态',
    key: 'apply_status',
    type: 'select',
    placeholder: '请选择审核状态',
    items: [
      { label: '去提交', value: '0' },
      { label: '审核中', value: '1' },
      { label: '审核成功', value: '2' },
      { label: '审核不通过', value: '3' }
    ],
    value: '',
    isCanCommonSearch: true
  }, {
    name: '考试状态',
    key: 'status',
    type: 'select',
    placeholder: '请选择考试状态',
    items: [
      { label: '通过', value: '15' },
      { label: '未通过', value: '0' }
    ],
    value: '',
    isCanCommonSearch: true
  }, {
    name: '捎货人状态',
    key: 'status',
    type: 'select',
    placeholder: '请选择捎货人状态',
    items: [
      { label: '禁用', value: '0' },
      { label: '有效', value: '1' }
    ],
    value: '',
    isCanCommonSearch: true
  }, {
    name: '注册时间',
    key: [ 'start_time', 'end_time' ],
    placeholder: '请选择注册时间',
    type: 'datetimerange',
    value: []
  }
]
